package com.siemens.industrial.model.admin;

import org.springframework.jdbc.core.RowMapper;

/**
 * Created by qupen on 2016/11/22.
 */
public class GatewayInfo {
    private String version;
    private String clientId;
    private String hardware;
    private String software;

    private static final RowMapper<GatewayInfo> rowMapper = (resultSet, i) -> {
        GatewayInfo gatewayInfo = new GatewayInfo();
        gatewayInfo.setClientId(resultSet.getString("clientId"));
        gatewayInfo.setHardware(resultSet.getString("hardware"));
        gatewayInfo.setSoftware(resultSet.getString("software"));
        gatewayInfo.setVersion(resultSet.getString("version"));
        return gatewayInfo;
    };

    public static RowMapper<GatewayInfo> getRowMapper() {
        return rowMapper;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getHardware() {
        return hardware;
    }

    public void setHardware(String hardware) {
        this.hardware = hardware;
    }

    public String getSoftware() {
        return software;
    }

    public void setSoftware(String software) {
        this.software = software;
    }
}
